// Package can_t_ac_hard demo
// @Title can_t_ac_hard
// @Description
// @Author  == 琳琳也叫王木木 ==  2021/9/9 10:49
// @Create  2021/9/9 10:49
package no_ac_hard

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

// Node N叉树
type Node struct {
	Val      int
	Children []*Node
}

// WNode 完美二叉树
type WNode struct {
	Val   int
	Left  *WNode
	Right *WNode
	Next  *WNode
}

//Definition for singly-linked list.
type ListNode struct {
	Val  int
	Next *ListNode
}

func DisplayListNode(head *ListNode) []int {
	if head == nil {
		return nil
	}
	ans := make([]int, 0)
	for head != nil {
		ans = append(ans, head.Val)
		head = head.Next
	}
	return ans
}
